home *** CD-ROM | disk | FTP | other *** search
- Path: rain.fr!world-net!usenet
- From: Frederic LACHASSE <lachass@worldnet.fr>
- Newsgroups: comp.lang.c++
- Subject: Re: C++ newbie asks for help
- Date: Sun, 17 Mar 1996 07:35:16 +0000
- Organization: World-Net information exchange, Internet provider.
- Message-ID: <VA.0000006d.00028cda@fred>
- References: <31488AC8.1557@cco.caltech.edu>
- Reply-To: lachass@worldnet.fr
- NNTP-Posting-Host: client122.sct.fr
- X-Newsreader: Virtual Access by Ashmount Research Ltd, http://www.ashmount.com
-
- For performance reason, iostreams are generally buffered, that is output
- to cout are temporarily stored in a buffer and is sent to the screen
- only when the buffer is full or the stream is flushed.
-
- To flush an ostream you can use its flush() member function:
-
- cout.flush();
-
- or use the "flush" manipulator:
-
- cout << flush;
-
- Another very useful manipulator is "endl" that inserts a new line
- character then flushes the ostream:
-
- cout << endl; // finish the line and print it.
-
- I hope this'll help.
-
- Frederic LACHASSE (ECP 86)
- CompuServe: 100530,2005
- Internet: lachass@worldnet.fr
-
-